package com;

public class TeachTest {
    public static void main(String[] args) {
        Teach teach1 = new Teach();
        teach1.setName("语文老师");
        Teach teach = new Teach();
        teach.setName("数学老师");

        TeacherInterface chinese = new TeacherInterfaceImpl();
        TeacherInterface maths = new MathTeach();
        chinese.homework(teach1);
        chinese.teach(teach1);
        maths.teach(teach);
        maths.homework(teach);
    }
}
